package 剑指offer;

public class 打印从1到最大的n位数 {
    public int[] printNumbers(int n) {
        int num =(int)(Math.pow(10, n) - 1);
        int[] ints = new int[num];
        for (int i = 0; i < num; i++) {
            ints[i]=i+1;
        }
        return ints;
    }
}
